package com.dv.shell.exception;

import com.dv.shell.enums.ResultEnum;

/**
 * @Author DavidLoman
 * @create 2021/6/8 21:52
 */
public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnum resultEnum) {
        //不懂为啥要加这个super
        super(resultEnum.getMessage());

        this.code = resultEnum.getCode();
    }

}
